/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       button_bitmaps.cpp

	$Header: /game/button_bitmaps.cpp $

	$NoKeywords: $

 ************************************************************************/

// kill the 255+ character identifier warning.  Templates tend to exceed that easily.
#include "precompiled.h"
#pragma warning( disable: 4786 )

#include "button_bitmaps.h"

// --------------------------------------------------------
// body of button bitmaps
// --------------------------------------------------------
t_button_bitmaps::t_button_bitmaps( t_bitmap_group_24 const& source )
                : t_bitmap_group( source )
{
	t_bitmap_layer const* layer = 0;

    m_up = find( "released" );

	layer = find( "released_text" );
	if( layer )
		m_up_rect = layer->get_rect();

    m_down = find( "pressed" );

	layer = find( "pressed_text" );
	if( layer )
		m_down_rect = layer->get_rect();

    m_disabled = find( "disabled" );

	layer = find( "disabled_text" );
	if( layer )
		m_disabled_rect = layer->get_rect();

    m_highlighted = find( "highlighted" );

	layer = find( "highlighted_text" );
	if( layer )
		m_highlighted_rect = layer->get_rect();

	m_highlighted_pressed = find( "highlighted_pressed" );

	layer = find( "highlighted_pressed_text" );
	if( layer )
		m_highlighted_pressed_rect = layer->get_rect();
}
